//
//  ExaminationTool.h
//  VideoExam
//
//  Created by apple on 2020/4/13.
//

#import <Foundation/Foundation.h>
#import "ExamineeInfoModel.h"
#import "TestInfoModel.h"
#import "OrderDetailsModel.h"
@class OrderModel;

NS_ASSUME_NONNULL_BEGIN
//  保存考生信息  考试信息  订单 支付信息等
@interface TestManageTool : NSObject
///考生信息
@property(nonatomic,strong)ExamineeInfoModel * student_model;
///考试信息
@property(nonatomic,strong)TestInfoModel * testModel;

///订单信息model
@property(nonatomic,strong)OrderModel * orderModel;


///曲目ids都好字符串拼接 所有选择曲目的id 上传
@property(nonatomic,strong)NSString * songIds;

//上传界面使用
@property(nonatomic,strong)NSMutableArray * dataArray;
///相亲界面进入使用
@property(nonatomic,strong)NSString * details_oss_path;

//获取单利
+ (instancetype)sharedInstance;

//详情界面进入视频录制获取 视频组合路径
+ (void)details_vc_get_path_detailsModel:(OrderDetailsModel*)model;



/// 设置 oss 服务器里的路径url 路径 上传的时候在拼接 视频名
/// @param details_push 是否是详情界面进入
+ (NSString *)Set_OSS_url_path_details_push:(BOOL)details_push;

#pragma mark 创建订单
- (void)create_order_success:(ObjSuccess)successBlock error:(void(^)(NSString * info))errorBlock;

#pragma mark 创建微信订单
/// 创建微信
/// @param orderId  订单id
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)weiXin_Create_Order_orderId:(NSString *)orderId success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 创建支付宝订单
/// 创建支付宝订单
/// @param orderId  订单id
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)aliPay_Create_Order_orderId:(NSString *)orderId success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 修改订单状态 改为视频上传状态
/// 修改订单状态 改为视频上传状态
/// @param orderId 订单id
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)change_order_state_orderId:(NSString *)orderId success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 完成考试
/// 完成考试
/// @param orderId 订单id
/// @param data 上传成功后的 视频model数组
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)finish_test_orderId:(NSString *)orderId dataArray:(NSArray *)data success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;


@end


@interface OrderModel : NSObject
@property(nonatomic,strong)NSString *  orderId;// = 1286586825753948161;
@property(nonatomic,strong)NSString * orderNo;// = OrderNo202007241659370006;
@property(nonatomic,strong)NSString * studentId;// = 1286586824965451778;
@end


NS_ASSUME_NONNULL_END
